package javaio.FileInputOutputStream;

import java.io.FileInputStream;
import java.io.IOException;

public class Main7 {
    public static void main(String[] args) {
        try (FileInputStream inputStream = new FileInputStream("test.txt")) {
            System.out.println(inputStream.skip(1));  //skip跳过指定的字节数量，返回跳过的字节数
            System.out.println((char) inputStream.read()); //打印第二个字节

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
